builder.html {
    blogLayout.head() {text ->
        title("${text} Manage Post")
    }

    blogLayout.body(tags, blogConfig) {
        h1("Edit Your Post")
        div(id:"validationerrors") {
            gp.renderErrorsFor(post)
        }
        form(action:"${gp.createLink(controller:"post", action:"save")}", method:"POST") {
            input(type:"hidden", name:"id", value:post.id)
            dl{
                gp.textInput(label:"Post Title:", bean:post, property:"title", size:50)
                gp.textArea(label:"Post Teaser:", bean:post, property:"teaser", cols:50)
                gp.textArea(label:"Post Content:", bean:post, property:"content", rows:20, cols:50)
                gp.textInput(label:"Tags:", bean:post, property:"tagsAsString", size:50)
            }
            input(type:"submit", value:"Save")
            gp.anchor(controller:"post", action:"list"){"Cancel"}
        }
    }
}   